<template>
    <div style="height: 100%">
      <ws-tags @clicktag="wsTagsClick" @removetag="wsTagsRemove"></ws-tags>
        <div :style="{padding: '0 10px 10px',height:'calc(100% - 41px)'}">
          <keep-alive :include="cacheViews">
          <router-view></router-view>
          </keep-alive>
        </div>
    </div>
</template>

<script>
  import {mapState} from "vuex";
  import wsTags from "./tags"

  export default{
    components: {wsTags},
    name : 'wsContent',
    props:{
    },
    computed: {
      ...mapState(['cacheViews'])
    },
    data (){
      return {}
    },
    methods : {
      //tag点击回调
      wsTagsClick(item){
        console.info(item);
      },
      //tag删除回调
      wsTagsRemove(item){
        console.info(item);
      }
    }
  }
</script>
<style scoped>
  /deep/.ivu-spin-fix {
   position: unset;
  }
</style>

